package com.sz.biz.logistics.bill.entity;

import com.sz.common.base.dao.ext.IEnum;

/**
 * Function: 账单任务状态 <br>
 * Author: jifeixing<br>
 * Date: 2017-05-18 17:03:00
 */
public enum BillingTaskStatus implements IEnum {
    PROCESSING("2", "处理中"),
    COMPLETED("1", "已完成"),
    SUSPEND("3", "异常");


    private String code;
    private String name;

    BillingTaskStatus(String code, String name) {
        this.code = code;
        this.name = name;
    }
    @Override
    public String getCode() {
        return this.code;
    }
    @Override
    public String getName() {
        return this.name;
    }

    public static BillingTaskStatus valueOfEnum(String code) {
        BillingTaskStatus[] iss = values();
        for (BillingTaskStatus cs : iss) {
            if (cs.getCode().equals(code)) {
                return cs;
            }
        }
        return null;
    }


}
